<!--
描述：学校模块-课程类型
开发人：zhaohang
开发日期：2019年10月31日
-->
<template lang="pug">
  keep-alive
    kalix-table(bizKey="classType" title='课程类型' ref="kalixTable"
    v-bind:tableFields="tableFields"
    v-bind:targetURL="classTypeURL"
    v-bind:bizDialog="classTypeDialog"
    v-bind:btnList="classTypeBtnList"
    v-bind:buttonPermissionPrefix="buttonPermissionPrefix"
    v-bind:toolbarBtnList="toolbarBtnList"
    bizSearch="classTypeSearch")
</template>

<script type="text/ecmascript-6">
  import {classTypeURL, classTypeBtnPermissionPrefix} from '../../config.toml'
  import {classTypeConfigBtnList} from './config'
  import KalixTable from '../../../../../components/corelib/components/common/baseTable'

  export default {
    name: 'kalix-mplive-classtype',
    components: {KalixTable},
    data() {
      return {
        classTypeURL: classTypeURL,
        tableFields: [
          {prop: 'name', label: '类型名称'},
          {prop: 'createBy', label: '创建人'},
          {prop: 'creationDate', label: '创建日期'}
        ],
        classTypeDialog: [
          {id: 'add', dialog: 'ClassTypeAdd'},
          {id: 'edit', dialog: 'ClassTypeEdit'}
        ],
        classTypeBtnList: classTypeConfigBtnList,
        buttonPermissionPrefix: classTypeBtnPermissionPrefix,
        toolbarBtnList: [
          {id: 'add', isShow: true, title: '添加', isPermission: true}
        ]
      }
    }
  }
</script>

<style scoped lang="stylus">

</style>
